package com.qst.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 链接信息表
 * @TableName links
 */
@TableName(value ="links")
public class Links {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer link_id;
    
    @JsonProperty("linkId")
    private Integer linkId;

    /**
     * 链接名称
     */
    private String link_name;
    
    @JsonProperty("linkName")
    private String linkName;

    /**
     * 网址
     */
    private String link_url;
    
    @JsonProperty("linkUrl")
    private String linkUrl;

    /**
     * 状态
     */
    private String link_state;
    
    @JsonProperty("linkState")
    private String linkState;

    /**
     * 排序号
     */
    private Integer link_order;
    
    @JsonProperty("linkOrder")
    private Integer linkOrder;

    // ID字段的getter/setter方法
    public Integer getLinkId() {
        return linkId != null ? linkId : link_id;
    }

    public void setLinkId(Integer linkId) {
        this.linkId = linkId;
        if (this.link_id == null) {
            this.link_id = linkId;
        }
    }

    public Integer getLink_id() {
        return link_id;
    }

    public void setLink_id(Integer link_id) {
        this.link_id = link_id;
        if (this.linkId == null) {
            this.linkId = link_id;
        }
    }

    // 链接名称字段的getter/setter方法
    public String getLinkName() {
        return linkName != null ? linkName : link_name;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
        if (this.link_name == null) {
            this.link_name = linkName;
        }
    }

    public String getLink_name() {
        return link_name;
    }

    public void setLink_name(String link_name) {
        this.link_name = link_name;
        if (this.linkName == null) {
            this.linkName = link_name;
        }
    }

    // 网址字段的getter/setter方法
    public String getLinkUrl() {
        return linkUrl != null ? linkUrl : link_url;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
        if (this.link_url == null) {
            this.link_url = linkUrl;
        }
    }

    public String getLink_url() {
        return link_url;
    }

    public void setLink_url(String link_url) {
        this.link_url = link_url;
        if (this.linkUrl == null) {
            this.linkUrl = link_url;
        }
    }

    // 状态字段的getter/setter方法
    public String getLinkState() {
        return linkState != null ? linkState : link_state;
    }

    public void setLinkState(String linkState) {
        this.linkState = linkState;
        if (this.link_state == null) {
            this.link_state = linkState;
        }
    }

    public String getLink_state() {
        return link_state;
    }

    public void setLink_state(String link_state) {
        this.link_state = link_state;
        if (this.linkState == null) {
            this.linkState = link_state;
        }
    }

    // 排序号字段的getter/setter方法
    public Integer getLinkOrder() {
        return linkOrder != null ? linkOrder : link_order;
    }

    public void setLinkOrder(Integer linkOrder) {
        this.linkOrder = linkOrder;
        if (this.link_order == null) {
            this.link_order = linkOrder;
        }
    }

    public Integer getLink_order() {
        return link_order;
    }

    public void setLink_order(Integer link_order) {
        this.link_order = link_order;
        if (this.linkOrder == null) {
            this.linkOrder = link_order;
        }
    }
}